package cn.gailvlun.gll.widget.edittext

import cn.gailvlun.gll.util.ToastUtil


class PasswordFilter : BaseFilter() {


    private val mRegexPwd: Regex
        get() = "[a-zA-Z\\d._]".toRegex()

    override fun isAllowed(c: Char): Boolean {







        return if (mRegexPwd.matches(c.toString())) {
            true
        } else {

            ToastUtil.showShort("密码含不支持字符")
            false
        }
    }


}